function init(){
	
	 let au=new AjaxUtils;
	 param="blog.servlet?param=viewblog&id="+GetRequest();									// 请求接受博客类型列表
     au.ajaxRequest(param,(xhr)=>{
    	 var json=JSON.parse(xhr.responseText);
    	 document.getElementById("article_title").innerHTML=json.blog.blog_name;
    	 document.getElementById("article_text").innerHTML=json.blog.blog_text;
    	 document.getElementById("article_type").innerHTML=json.blog.type_name; 
    	
    	 document.getElementById("article_time").innerHTML=json.blog.stringtime;
    	 document.getElementById("article_author").innerHTML=json.blog.article_message.userName;
    	 document.getElementById("article_author_main").innerHTML=json.blog.article_message.userName;
    	 
    	 
     });
	
	
	
	
	
}
function GetRequest() {
	  
	  var url = location.search; 
	   var theRequest = new Object();
	   if (url.indexOf("?")!= -1) {
	     url=url.substr(url.indexOf("id=")+3);
	   }
	   return url;
	}
window.addEventListener("load",init,false);